Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Fix additional peerOptional conflict cases #237

Merged
merged 1 commit into from
Feb 18, 2021

Conversation

isaacs
Copy link
Contributor

@isaacs isaacs commented Feb 17, 2021

case D

root -> (x, z@1)
x -> PEEROPTIONAL(y)
y -> PEER(z@2)

case E

root -> (x, z@1)
x -> PEEROPTIONAL(y) PEER(z@1)
y -> PEER(z@2)

case F

root -> (x, z@1)
x -> PEEROPTIONAL(y) PEER(z@1) PEER(w@1)
w -> PEER(z@1)
y -> PEER(z@2)

Case F properly reproduces the failure seen by installing
[email protected] alongside typescript@4.

Fix: #236

cc: @kyliau

@isaacs isaacs force-pushed the isaacs/fix-peer-optional-eresolve-2 branch from cff9aa8 to 9410d16 Compare February 17, 2021 22:12
@isaacs
Copy link
Contributor Author

isaacs commented Feb 17, 2021

Note, only Case F is actually broken prior to this commit, but I kept the others for completeness, and to ensure we don't regress in those cases.

case D

```
root -> (x, z@1)
x -> PEEROPTIONAL(y)
y -> PEER(z@2)
```

case E

```
root -> (x, z@1)
x -> PEEROPTIONAL(y) PEER(z@1)
y -> PEER(z@2)
```

case F

```
root -> (x, z@1)
x -> PEEROPTIONAL(y) PEER(z@1) PEER(w@1)
w -> PEER(z@1)
y -> PEER(z@2)
```

Case F properly reproduces the failure seen by installing
[email protected] alongside typescript@4.

Fix: #236

cc: @kyliau

PR-URL: #237
Credit: @isaacs
Close: #237
Reviewed-by: @isaacs
@isaacs isaacs force-pushed the isaacs/fix-peer-optional-eresolve-2 branch from 9410d16 to f25367d Compare February 18, 2021 23:06
@isaacs isaacs merged commit f25367d into main Feb 18, 2021
@wraithgar wraithgar deleted the isaacs/fix-peer-optional-eresolve-2 branch April 22, 2021 17:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] another peerOptional ERESOLVE case
1 participant